<div class="login-wrapper" style="width: 700px;">	
	<span class="page-title" th:text="#{contact.form.title}">Contact Us</span>
	<p>
		<span th:text="#{contact.form.subtitle}">To contact us by email, fill out the contact form below.</span>
	</p>
	
	<blc:form action="#" th:action="@{/contact/sendMessage}" th:object="${contactForm}" method="POST">
<!-- 	     <input type="hidden" name="successUrl" th:if="${successUrl}" th:value="${successUrl}"/> -->
	     <div class="form-fields contact-form">    
	
	       <div>
	            <label for="name"><span th:text="#{contact.name}">Name</span></label>
	            <span class="error" th:if="${#fields.hasErrors('name')}" th:errors="*{name}"></span>
	            <input type="text" th:field="*{name}" th:classappend="${#fields.hasErrors('name')}? 'fieldError'" />
	        </div>
	       
	        <div>
	            <label for="email"><span th:text="#{contact.email}">Email</span></label>
	            <span class="error" th:if="${#fields.hasErrors('emailAddress')}" th:errors="*{emailAddress}"></span>
	            <input type="email" th:field="*{emailAddress}"  th:classappend="${#fields.hasErrors('emailAddress')}? 'fieldError'" />
	        </div>
	        
	        <div>
	            <label for="telephone"><span th:text="#{contact.telephone}">Telephone</span></label>
	            <span class="error" th:if="${#fields.hasErrors('telephone')}" th:errors="*{telephone}"></span>
	            <input type="text" th:field="*{telephone}" th:classappend="${#fields.hasErrors('telephone')}? 'fieldError'" />
	        </div>          
	        <div>
	            <label for="message"><span th:text="#{contact.message}">Message</span></label>
	            <span class="error" th:if="${#fields.hasErrors('message')}" th:errors="*{message}"></span>
	            <textarea th:field="*{message}" th:classappend="${#fields.hasErrors('message')}? 'fieldError'" />
	        </div>
	        <div>
	            <label for="recaptcha_response_field">&nbsp;</label>
	            <span class="error" th:if="${#fields.hasErrors('captchaForm.recaptcha_response_field')}" th:errors="*{captchaForm.recaptcha_response_field}"></span>
	            <div style="display: inline-block;"><div th:substituteby="layout/partials/recaptcha" /></div>
	        </div>
	                  
		</div>
		
		
	    <div class="login_register">
	         <input class="register_button big red" type="submit" th:value="#{contact.send}"/>
	    </div>
	</blc:form>
</div>